<div id="page">
    <?php 
        if(isset($this->hospitals)){
            foreach($this->hospitals as $item){
                echo "<div class='item'>";
                    echo "<div class='slideshow'>";
                        $imgs = explode(",",$item['images']);                        
                       if(isset($imgs)){
//                            $count = 0;
                             echo "<img  src='".$imgs[0]."'  >";
//                            foreach($imgs as $img){
//                                if($count!=0)
//                                    echo "<img  src='".$img."'  >";
//                                else
//                                    echo "<img  src='".$img."'>";
//                                $count ++;
//                            }
                        }                            
                    echo "</div>";
                    echo "<div class='item_right'>";
                        echo "<h2 class='title'>".$item['name']."</h2>";
                        echo "<p>Điện thoại: ".$item['phone']."</p>";
                        echo "<p>Địa chỉ: ".$item['address']."</p>";
                        echo "<a href='".$this->baseUrl."/default/hospital/detail/id/".$item['id']."' class='more'>Xem thêm</a>";
                    echo "</div>";
                    echo "<div class='clear'></div>";
                echo "</div>";
                
            }
        }else{
            echo "No news available .";
        }
        
    ?>
</div>
